<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<div th:fragment="criteria">

		<fieldset>
			<div class="form-group" style="margin-top: 10px; margin-bottom: 10px;">
				<label for="input-id-1" class="col-sm-1 control-label">文档类型</label>
				<div class="col-sm-2">
					<select name="search_docType_notation" id="search_docType_notation" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="neq">不等于</option>
					</select>
				</div>

				<div class="col-sm-3">
					<select name="search_docType" id="search_docType" class="form-control m-b">
						<option value=""></option>
						<option th:each="docType,status:${docTypeList}" th:value="${docTypeList[__${status.index}__].dictkeyValue}"
							th:text="${docTypeList[__${status.index}__].dictkeyName}"></option>
					</select>
				</div>
			</div>
			<div class="form-group" style="margin-top: 10px; margin-bottom: 10px;">
				<label for="input-id-1" class="col-sm-1 control-label">文档标题</label>
				<div class="col-sm-2">
					<select name="search_docTitle_notation" id="search_docTitle_notation" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="contain">包含</option>
					</select>
				</div>
				<div class="col-sm-3">
					<input type="text" id="search_docTitle" name='search_docTitle' class="form-control" />
				</div>
			</div>
			<div class="form-group" style="margin-top: 10px; margin-bottom: 10px;">
				<label for="input-id-1" class="col-sm-1 control-label">作者</label>
				<div class="col-sm-2">
					<select name="search_docAuthor_notation" id="search_docAuthor_notation" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="contain">包含</option>
					</select>
				</div>
				<div class="col-sm-3">
					<input type="text" id="search_docAuthor" name='search_docAuthor' class="form-control" />
				</div>
			</div>







			<div class="form-group">
				<label for="input-id-1" class="col-sm-1 control-label">简介</label>
				<div class="col-sm-2">
					<select name="search_docSummary_notation" id="search_docSummary_notation" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="contain">包含</option>
					</select>
				</div>
				<div class="col-sm-3">

					<input type="text" id="search_docSummary" name='search_docSummary' class="form-control" />

				</div>
			</div>

		</fieldset>

		<fieldset id="docMetadata">


			<div th:each="obj,metaDate:${metaDateList}" style="margin-top: 10px; margin-bottom: 10px;" class="form-group">
				<label for="input-id-1" th:text="${metaDateList[__${metaDate.index}__].metadataName}" class="col-sm-1 control-label"></label>
				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='text' and metaDateList[__${metaDate.index}__].importMode=='1'}"
					class="col-sm-2">
					<select th:name="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|"
						th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="contain">包含</option>
					</select>
				</div>
				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='textarea' and metaDateList[__${metaDate.index}__].importMode=='1'}"
					class="col-sm-2">
					<select th:name="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|"
						th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="contain">包含</option>
					</select>
				</div>
				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='text' and metaDateList[__${metaDate.index}__].importMode=='2'}"
					class="col-sm-2">
					<select th:name="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|"
						th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="neq">不等于</option>
					</select>
				</div>


				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='number' and metaDateList[__${metaDate.index}__].importMode=='2'}"
					class="col-sm-2">
					<select th:name="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|"
						th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_notation|" class="form-control m-b">
						<option value="eq">等于</option>
						<option value="neq">不等于</option>
					</select>
				</div>


				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='text' and metaDateList[__${metaDate.index}__].importMode=='1'}"
					class="col-sm-3">
					<input type="text" th:id="${metaDateList[__${metaDate.index}__].metadataTag}"
						th:name='${metaDateList[__${metaDate.index}__].metadataTag}' class="form-control" />
				</div>



				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='text' and metaDateList[__${metaDate.index}__].importMode=='2'}"
					class="col-sm-3">
					<select th:id="${metaDateList[__${metaDate.index}__].metadataTag}"
						th:name='${metaDateList[__${metaDate.index}__].metadataTag}' class="form-control selectData">
					</select> <input type="hidden" th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_data|"
						th:name='|${metaDateList[__${metaDate.index}__].metadataTag}_data|'
						th:value='${metaDateList[__${metaDate.index}__].selectData}' />
				</div>

				<div style="margin-top: 7px; margin-bottom: 8px;"
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='number' and metaDateList[__${metaDate.index}__].importMode=='1'}"
					class="col-sm-2">
					<span class="text-sm text-muted">起始值</span> <input type="text"
						th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_start|"
						th:name='|${metaDateList[__${metaDate.index}__].metadataTag}_start|' class="form-control" />
				</div>




				<div style="margin-top: 7px; margin-bottom: 8px;"
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='number' and metaDateList[__${metaDate.index}__].importMode=='1'}"
					class="col-sm-3">
					<span class="text-sm text-muted">结束值</span> <input type="text"
						th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_end|"
						th:name='|${metaDateList[__${metaDate.index}__].metadataTag}_end|' class="form-control" />
				</div>


				<div
					th:if="${metaDateList[__${metaDate.index}__].metadataType=='number' and metaDateList[__${metaDate.index}__].importMode=='2'}"
					class="col-sm-3">
					<select th:id="${metaDateList[__${metaDate.index}__].metadataTag}"
						th:name='${metaDateList[__${metaDate.index}__].metadataTag}' class="form-control selectData">

					</select> <input type="hidden" th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_data|"
						th:name='|${metaDateList[__${metaDate.index}__].metadataTag}_data|'
						th:value='${metaDateList[__${metaDate.index}__].selectData}' />

				</div>

				<div th:if="${metaDateList[__${metaDate.index}__].metadataType=='textarea'}" class="col-sm-3">
					<input type="text" th:id="${metaDateList[__${metaDate.index}__].metadataTag}"
						th:name='${metaDateList[__${metaDate.index}__].metadataTag}' class="form-control" />
				</div>



				<div th:if="${metaDateList[__${metaDate.index}__].metadataType=='date'}"
					style="margin-top: 7px; margin-bottom: 8px;" class="col-sm-2">

					<span class="text-sm text-muted">开始日期</span>
					<p class="input-group date dateclass " style="">

						<input type="text" th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_start|"
							th:name='|${metaDateList[__${metaDate.index}__].metadataTag}_start|' class="form-control" /> <span
							class="input-group-addon"> <span class="fa fa-calendar"></span>
						</span>
					</p>
				</div>
				<div th:if="${metaDateList[__${metaDate.index}__].metadataType=='date'}"
					style="margin-top: 7px; margin-bottom: 8px;" class="col-sm-3">
					<span class="text-sm text-muted">结束日期</span>
					<p class="input-group date dateclass " style="">

						<input type="text" th:id="|${metaDateList[__${metaDate.index}__].metadataTag}_end|"
							th:name='|${metaDateList[__${metaDate.index}__].metadataTag}_end|' class="form-control" /> <span
							class="input-group-addon"> <span class="fa fa-calendar"></span>
						</span>
					</p>
				</div>
			</div>

		</fieldset>



		<fieldset>
			<div class="form-group ">
				<label for="input-id-1" class="col-sm-1 control-label"></label>
				<div class="col-sm-5 ">
					<button type="button" class="btn btn-primary pull-right mr-sm" id="submitBtn">查询</button>

				</div>
			</div>
		</fieldset>
		<input type="hidden" id="sourcePage" name="sourcePage" value="" /> 
		<input type="hidden" id="csId"  name="csId" th:value="${csId}" />
		<input type="hidden" id="queryTa"  name="queryTa" th:value="${queryTa}" /> 

	</div>
</body>

</html>